package ivia.abraao;


public class AnalizaNumeros {

	public static boolean IsPrime(int i) {
		StringBuffer number = new StringBuffer();
		for (int j = 0; j < i; j++) 
			number.append("1");
		
		return !number.toString().matches("^1?$|^(11+?)\\1+$");
	}
	
	
}
